Add 'inhibit-native-compilation'
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 3 Oct 2022 13:26:04 +0000 (15:26 +0200)
committerRob Browning <rlb@defaultvalue.org>
Sun, 9 Nov 2025 19:50:49 +0000 (13:50 -0600)
commit369dfc21deaa523887dc4d6cb4dd654de8d1087d
treec81089806905cb1b611768206ffc09cdbd61cca9
parentfb12f75a965b0dbff009c4fb74e5f6ae091c2dbc
Add 'inhibit-native-compilation'

The following upstream patch has been backported:

  Add new variable 'inhibit-native-compilation'

  * lisp/startup.el (normal-top-level): Set
  inhibit-native-compilation from environment variable.

  * lisp/emacs-lisp/comp.el (comp-trampoline-compile): Don't write
  trampolines to disk.

  * lisp/progmodes/elisp-mode.el
  (emacs-lisp-native-compile-and-load): Adjust.

  * src/comp.c (syms_of_comp): New variable
  inhibit-native-compilation.
  (maybe_defer_native_compilation): Use it.

Origin: upstream, commit: 5fec9182dbeffa88cef6651d8c798ef9665d6681
Forwarded: not-needed
lisp/emacs-lisp/comp.el
lisp/startup.el
src/comp.c